﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class TrangChuBUS
    {
        TrangChuDAO trangChuDAO;

        // Phương thức khởi tạo.
        public TrangChuBUS()
        {
            trangChuDAO = new TrangChuDAO();
        }
        public List<TrangChuDTO> LayDanhSach()
        {
            return trangChuDAO.LayDanhSach();
        }
        public int ThemTrangChu(TrangChuDTO trangChu)
        {
            return trangChuDAO.ThemTrangChu(trangChu);
        }

        public int CapNhatTrangChu(TrangChuDTO trangChu)
        {
            return trangChuDAO.CapNhatTrangChu(trangChu);
        }

        public int XoaTrangChu(TrangChuDTO trangChu)
        {
            return trangChuDAO.XoaTrangChu(trangChu);
        }
    }
}
